package com.hspedu.enum_;

/**
 * @author DL5O
 * @version 1.0
 */
public class EnumExercise02 {
    public static void main(String[] args) {
        Week[] week = Week.values();
        System.out.println("==所有信息如下==");
        for (Week day : week) {
            System.out.println(day);
        }
    }
}

enum Week{

    MONDAY("星期一"),TUESDAY("星期二"),WEDNESDAY("星期三"),
    THURSDAY("星期四"),FRIDAY("星期五"),SATURDAY("星期六"),
    SUNDAY("星期日");
    private String day;

    private Week(String day) {
        this.day = day;
    }

    public String getDay() {
        return day;
    }

    @Override
    public String toString() {
        return day;
    }
}